package com.yan.design.observer.listiter;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 观察者模式
 * 监听者1
 * @author shengren.yan
 * @create 2022-11-12
 */
@Component
public class SmsLinstener2 implements ApplicationListener<ALlEvent> {

    @Override
    public void onApplicationEvent(ALlEvent event) {
        System.out.println("2.发送邮件 逻辑---");
    }

}
